/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.mapper;

import com.koron.purpose.bean.SafetyPualificationBean;

import java.util.List;
import java.util.Map;

public interface SafetyPualificationMapper {
    /**
     * 列表查询
     * @param map
     * @return
     */
    List<Map> queryForList(Map map);

    /**
     * 统计 列表查询 个数
     * @param map
     * @return
     */
    Integer countForList(Map map);

    /**
     * 根据ID查询 安全资质
     * @param id
     * @return
     */
    SafetyPualificationBean queryById(String id);

    /**
     * 根据ID删除安全资质
     * @param id
     * @return
     */
    Integer deleteSafetyPualifiById(String id);

    /**
     * 新增安全资质
     * @param bean
     * @return
     */
    Integer insertSafetyPualifi(SafetyPualificationBean bean);

    /**
     * 修改安全资质
     * @param bean
     * @return
     */
    Integer updateSafetyPualifi(SafetyPualificationBean bean);
}
